import { post } from '../server/';

export function list(data) {
    return new Promise((resolve, reject) => {
        return post('/article/list', data)
            .then(json => resolve(json.meta))
            .then(null, () => reject(new Error("出错了！")));
    });
}